<!-- <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>棋盘格</title>
</head>
<body>
    <style>
        .one {
            width: 400px;
            height: 400px;
            background:
            linear-gradient(45deg,black 25%,transparent 0),
            linear-gradient(45deg,transparent 75% ,black 0),
            linear-gradient(45deg,black  25%,transparent 0),
            linear-gradient(45deg,transparent 75% ,black 0);
            background-position: 0 0,50px 50px,50px 50px, 100px 100px;
            background-size: 100px 100px;
        }
    </style>
    <div class="one"></div>
</body>
</html> -->

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>作业2591实现棋盘效果</title>
		<style>
			.container {
				width: 600px;
				height: 600px;				
				border: 5px solid black;
				margin: auto;
				display: flex;
			}
			
			.black {
				background-color: black;
				width: 200px;
				height: 200px;
			}
			.white {
				background-color: white;
				width: 200px;
				height: 200px;
			}
		</style>
	</head>
	<body>
		<div class="container">
			<div>
				<div class="black"></div>
				<div class="white"></div>
				<div class="black"></div>
			</div>
			<div>
				<div class="white"></div>
				<div class="black"></div>
				<div class="white"></div>
			</div>
			<div>
				<div class="black"></div>
				<div class="white"></div>
				<div class="black"></div>
			</div>
		</div>
	</body>
</html>
